package ooday01Exercise;

public class Phone {
    //成员变量：brand color，price
    //构造方法
    //方法：call()  listen() playGame()
    String brand;
    String color;
    double price;

    Phone(){

    }
    Phone(String brand,String color,double price){
        this.brand=brand;
        this.color=color;
        this.price=price;
    }

    void call(){
        System.out.println("我正在用"+brand+color+price+"的手机打电话");
    }

    void listen(){
        System.out.println("我正在用"+brand+color+price+"的手机听歌");
    }

    void playGame(){
        System.out.println("我正在用"+brand+color+price+"的手机打游戏");
    }
}
